package org.to_zero.springboot.springbootquick.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.to_zero.springboot.springbootquick.entities.Dept;
import org.to_zero.springboot.springbootquick.entities.vo.ResponseEntity;
import org.to_zero.springboot.springbootquick.service.DeptService;

@RestController
@RequestMapping("dept")
public class DeptController {
    @Autowired
    private DeptService deptService;

    @GetMapping("query")
    public ResponseEntity query(@RequestBody Dept dept){
        return deptService.selectDeptSelective(dept);
    }
}
